package cn.itcast.ssm.po;

import java.io.Serializable;
import java.util.Date;

public class Greenhouse implements Serializable {
    private Integer greenhouseId;

    private Date collectInterval;

    private Integer cropId;

    private static final long serialVersionUID = 1L;

    public Integer getGreenhouseId() {
        return greenhouseId;
    }

    public void setGreenhouseId(Integer greenhouseId) {
        this.greenhouseId = greenhouseId;
    }

    public Date getCollectInterval() {
        return collectInterval;
    }

    public void setCollectInterval(Date collectInterval) {
        this.collectInterval = collectInterval;
    }

    public Integer getCropId() {
        return cropId;
    }

    public void setCropId(Integer cropId) {
        this.cropId = cropId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", greenhouseId=").append(greenhouseId);
        sb.append(", collectInterval=").append(collectInterval);
        sb.append(", cropId=").append(cropId);
        sb.append("]");
        return sb.toString();
    }
}